package com.tom.springframework.test.bean;

/**
 * @author zx
 * @date 2024-11-07 11:09
 */
public class UserService {
    private String uId;
    private UserDao userDao;

    public void queryUserInfo(){
        System.out.println("查询的用户信息:"+userDao.queryUserNameById(uId));
    }

    public String queryUserInfo2() {
        return userDao.queryUserName(uId);
    }


    public String getuId() {
        return uId;
    }

    public void setuId(String uId) {
        this.uId = uId;
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
